package qldc.pm.tiensu.service.persistence;

import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
import com.liferay.portal.kernel.util.ReferenceRegistry;


public class KetQuaTrichLucFinderUtil {
    private static KetQuaTrichLucFinder _finder;

    public static java.util.List<java.lang.Object[]> findByDS_TrichLuc(
        long tinhId, long quanHuyenId, long phuongXaId,
        java.util.Date tuNgayTrichLuc, java.util.Date denNgayTrichLuc,
        java.lang.String coQuanTrichLuc, java.lang.String nguoiThucHienTrichLuc)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getFinder()
                   .findByDS_TrichLuc(tinhId, quanHuyenId, phuongXaId,
            tuNgayTrichLuc, denNgayTrichLuc, coQuanTrichLuc,
            nguoiThucHienTrichLuc);
    }

    public static int countDS_TrichLuc(long tinhId, long quanHuyenId,
        long phuongXaId, java.util.Date tuNgayTrichLuc,
        java.util.Date denNgayTrichLuc, java.lang.String coQuanTrichLuc,
        java.lang.String nguoiThucHienTrichLuc)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getFinder()
                   .countDS_TrichLuc(tinhId, quanHuyenId, phuongXaId,
            tuNgayTrichLuc, denNgayTrichLuc, coQuanTrichLuc,
            nguoiThucHienTrichLuc);
    }

    public static KetQuaTrichLucFinder getFinder() {
        if (_finder == null) {
            _finder = (KetQuaTrichLucFinder) PortletBeanLocatorUtil.locate(qldc.pm.tiensu.service.ClpSerializer.getServletContextName(),
                    KetQuaTrichLucFinder.class.getName());

            ReferenceRegistry.registerReference(KetQuaTrichLucFinderUtil.class,
                "_finder");
        }

        return _finder;
    }

    public void setFinder(KetQuaTrichLucFinder finder) {
        _finder = finder;

        ReferenceRegistry.registerReference(KetQuaTrichLucFinderUtil.class,
            "_finder");
    }
}
